$(function() {
	
	$("#slider-people").slider({
		min: 1,
		max: 10,
		value: 2,
		slide: function(event, ui) {
			$(this).siblings(".value").text(ui.value + (ui.value == 1 ? " person" : " people"));
		}
	});
	
	$("#slider-time").slider({
		min: 10,
		max: 60*12,
		value: 60,
		slide: function(event, ui) {
			var hours = Math.round(ui.value/60*10)/10;
			$(this).siblings(".value").text(hours + (hours == 1 ? " hour" : " hours"));
		}
	});
	
	$("#slider-distance").slider({
		min: 5,
		max: 100,
		value: 20,
		slide: function(event, ui) {
			$(this).siblings(".value").text(ui.value + " km");
		}
	});
	
	$("#fb-login").click(function() {
      	$("#step-filter").slideDown();
		$("#step-login").slideUp();
    });

	$("#submit-filters").button().click(function() {
		
	});
	
});